﻿@using CoralNode.Core.Entity.Enums
@using CoralNode.MvcClient.Helper
@using Coralcode.Utils.Basic
@model CoralNode.Core.Entity.Domains.Site.ThemeDomain

@{
    ViewBag.Title = "Edit";
}
@Html.IncludePage("CoralAdmin/site", "_Left", new { current = "theme" })
<div id="pbody">
    <div class="extra">
        <div class="pbody_top">
            <span class="ico ico_setting_system"></span><span class="t t_c">主题管理&nbsp;&nbsp;/&nbsp;&nbsp;<b
                class=" t_small f_no">编辑主题</b></span>
        </div>
        <div id="main">
            <div class="local">
                <a href="/m/site/listTheme" class="ico ico_back btn"></a>
            </div>
            <div class="content_tab extra_normal">
                <div class="tablist extra_normal" data-js="tab">
                    <a href="#">主要信息</a>
                </div>
            </div>
            <form id="spform" action="/m/site/editTheme/@Model.Id" method="post" enctype="multipart/form-data">
                @if (@ViewBag.Msg != null)
                {
                    <div class="error_msg">
                        @ViewBag.Msg.Msg
                    </div>
                }
                <div class="pt_3 js_tabcnt">
                    <div class="table_form form_main ">
                        <div class="pl_2 pb_3">
                            @Html.AntiForgeryToken()
                            @Html.ValidationSummary(true)
                            <table>
                                <tbody>
                                    <tr>
                                        <th width="60">主题编码<span class="rq">*</span></th>
                                        <td>
                                            @Html.TextBoxFor(m => m.Code, new { @class = "text w_37 required" })
                                            @Html.HiddenFor(m => m.Id)
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>主题名称<span class="rq">*</span></th>
                                        <td>@Html.TextBoxFor(m => m.Name, new { @class = "text w_37 required" })
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>缩略图</th>
                                        <td>
                                            <input type="hidden" name="Thumb" value="@Model.Thumb"/>
                                            <ul class="list_img" href="/m/common/upload" data-js="listimg">
                                                <li class="btn li_add js_openuploader" data-meta="{data:'{module:\'qualification/Thumb\'}',multi:false,method:'edit',type:'image'}">
                                                    <span class="ico ico_upload_image"></span>
                                                </li>
                                            </ul>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>主题描述</th>
                                        <td>@Html.TextAreaFor(m => m.Description, new { @class = "w_58 h_10" })
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="submitbox p_2 extra_normal">
                    <input type="submit" class="btn_1" value="提    交" />
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $('.nav_left_style2').find('li').eq(1).addClass('current');
    });
</script>
